/*
 * Log.h
 *
 * Created: 24-02-2013 13:18:27
 *  Author: Bootie
 */ 


#ifndef LOG_H_
#define LOG_H_

#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
using namespace std;

class Log
{
	public:
		enum Level
		{
			OFF,
			ERROR,
			WARNING,
			INFO,
			TRACE
		};
		
		Log();
		Log(Level inLevel, bool inFile);
		void SetLevel(Level inLevel);
		void LogIt(char* text, Level inLevel);
		
	private:	
		Level level;
		bool file;
		static char* codes[5];
		
};
char* Log::codes[] = {"OFF","ERROR","WARNING","INFO","TRACE"};


#endif /* LOG_H_ */